package fox.framework.rpc.message;

import java.util.Collection;

/**
 * @author cuichao
 * @Description: RpcHeader
 * @Date: create in 2021/2/15 22:09
 */
public interface RpcHeader {

    String CONTENT_TYPE = "Content-Type";
    String CONTENT_LENGTH = "Content-Length";
    String REQUEST_ID = "RpcClientRequestAPI-Id";

    /**
     * 添加RpcHeader
     *
     * @param name
     * @return
     */
    String getHeader(String name);
    /**
     * 设置一个头信息
     * @param name
     * @param value
     */
    void setHeader(String name, String value);

    /**
     * 返回所有的header-name
     * @return
     */
    Collection<String> getHeaderNames();

}
